<template>
    <div class="contnet">
        <div class="contnet_div" v-for="(item, index) in list" :key="index">
            <div class="contnet_div_line">
                <div class="contnet_div_line_left">
                    <div class="label">盘点数量：</div>
                    <div class="value colors">{{ item.countNum }}</div>
                </div>
                <div class="contnet_div_line_right">
                    <div class="label">盈亏状态：</div>
                    <div class="value" v-if="item.countResult == 1" :style="{color: '#0094FF'}">无盈亏</div>
                    <div class="value" v-if="item.countResult == 2" :style="{color: '#19D11B'}">盈{{ item.countNum }}</div>
                    <div class="value" v-if="item.countResult == 3" :style="{color: '#FC2540'}">亏{{ item.countNum }}</div>
                </div>
            </div>
            <div class="contnet_div_line">
                <div class="contnet_div_line_left">
                    <div class="label">盘点单：</div>
                    <div class="value">{{ item.countId }}</div>
                </div>
                <div class="contnet_div_line_right">
                    <div class="label labels">盘点人：</div>
                    <div class="value">{{ item.createByName }}</div>
                </div>
            </div>
            <div class="contnet_div_line">
                <div class="contnet_div_line_hang">
                    <div class="label">盘点时间：</div>
                    <div class="value">
                        {{ item.finishTime }}
                    </div>
                </div>
            </div>
            <div class="contnet_div_line">
                <div class="contnet_div_line_hang">
                    <div class="label">备注：</div>
                    <div class="value">{{ item.remark }}</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">
import { defineProps } from 'vue'
defineProps({
    list: { type: Object, default: {} },
})
</script>

<style lang="less" scoped>
@import url(../style/record.less);
</style>